package com.hd.pojo;

import java.util.List;

/**
 * Created by 1 on 2017/11/17.
 */
public class Menu implements Comparable<Menu>{

    //菜单表
    private Integer muId;//菜单id
    private String icon_skin;//图标
    private String module;//模板
    private  String name;//菜单名称
    private Integer sort;//排序
    private String url;//路径
    private Integer pId;// 子菜单id

    private List<Menu> children;//存放菜单

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public Integer getMuId() {
        return muId;
    }

    public void setMuId(Integer muId) {
        this.muId = muId;
    }

    public String getIcon_skin() {
        return icon_skin;
    }

    public void setIcon_skin(String icon_skin) {
        this.icon_skin = icon_skin;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    @Override
    public int compareTo(Menu o) {
        return this.getSort()-o.getSort();
    }
}
